package unit.request;

import unit.data.Message;

/**
 * @author Yuri Denison
 * @since 07.08.11
 */
public class SendMessageRequest extends Request {
    private Message message;

    public SendMessageRequest(int requestId, int session, Message message) {
        super(requestId, session);
        this.message = message;
    }

    public int getSenderId() {
        return message.getSenderId();
    }

    public Message getMessage() {
        return message;
    }

    public int getReceiverId() {
        return message.getReceiverId();
    }
}
